package com.prs.crm.domain.oa;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * OA综合行政车辆保险
 * @author zhoupeng 2012-4-13
 *
 */
@Entity
@Table(name="oa_vehicleInsurance")
public class VehicleInsurance extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 所属车辆
	 */
	@ManyToOne
	private Vehicle vehicle;
	/**
	 * 保险险种
	 */
	private String type;
	private String typeId;
	
	/**
	 * 经办人
	 */
	private String attn;
	/**
	 * 保险公司
	 */
	private String company;
	/**
	 * 保费
	 */
	private String price;
	/**
	 * 联系电话
	 */
	private String phone;
	/**
	 * 投保日期
	 */
	private Date insuredTime;
	/**
	 * 结束时间
	 */
	private Date endTime;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Vehicle getVehicle() {
		return vehicle;
	}
	public void setVehicle(Vehicle vehicle) {
		this.vehicle = vehicle;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getAttn() {
		return attn;
	}
	public void setAttn(String attn) {
		this.attn = attn;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Date getInsuredTime() {
		return insuredTime;
	}
	public void setInsuredTime(Date insuredTime) {
		this.insuredTime = insuredTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public String getTypeId() {
		return typeId;
	}
	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
}
